package zhongbo.java.air;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import zhongbo.java.air.flightpath.listener.RedisLogChanelPublisher;

/**
 * 说明：
 *
 * @author 钟波dellNotebook
 * @since 2025年04月01日 星期二 21:32:09
 */
@SpringBootApplication
@Slf4j
public class AirFlightPathMain {

    @Autowired
    private RedisLogChanelPublisher publisher;

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(AirFlightPathMain.class);
        log.info("---- success ---- {}", applicationContext);
        AirFlightPathMain bean = applicationContext.getBean(AirFlightPathMain.class);
        bean.publisher.sendMessage("测试内容");
    }
}
